/*
 * @: 
 * @Version: 1.0
 * @Autor: ziwei
 * @Date: 2021-12-22 17:01:00
 * @LastEditors: ziwei
 * @LastEditTime: 2021-12-22 17:46:56
 */
const HtmlWebpackPlugin = require('html-webpack-plugin');
const path = require('path')

module.exports = {
  mode:'development',
  devtool:false,
  entry:'./src/index.js',
  output:{
    path:path.resolve(__dirname,'dist'),
    filename:'main.js',
    library:'calculator',
    libraryTarget:'var'
  },
  plugins:[
    new HtmlWebpackPlugin({
      template:'./src/index.html'
    })
  ]
}